<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="refresh" content="1">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var current = new Date(); // 如果我不写代表获取当前的时间

        var year = current.getFullYear();
        var month = current.getMonth()+1;
        month = month<10?'0'+month:month
        var date = current.getDate();
        date = date<10?'0'+date:date;
        var hour = current.getHours();
        
        var minute = current.getMinutes();
        var second = current.getSeconds();
        var miseconds = current.getMilliseconds();

        var week = current.getDay();

        document.write(`${year}年${month}月${date}日 ${hour}时${minute}分${second}秒 星期${week}`);






    </script>
</body>
</html>